﻿@model GameStepAzure.Models.Cliente
@{
    ViewBag.Title = "LogIn";
    Layout = "~/Views/Shared/_Master.cshtml";
}
<style type="text/css">
    .center
    {
        text-align: center;
    }
    
    .error
    {
        color: Red;
    }
</style>
@using (Html.BeginForm("LogIn", "Perfil", FormMethod.Post, new { @class = "box login" }))
{ 
    <fieldset class="boxBody">
        <leyend/>
        <p class="center">
            Inicio de Sesi&oacute;n
        </p>
        @if (ViewBag.error != null)
        {                    
            <p class="error">@((String)ViewBag.error)</p>
        }
        @Html.Label("Email:")
        @Html.TextBoxFor(x => Model.Email)@Html.ValidationMessageFor(x => Model.Email)
        @Html.Label("Password:")
        @Html.PasswordFor(x => Model.Password)@Html.ValidationMessageFor(x => Model.Password)
    </fieldset>
    <footer>
        @Html.ActionLink("Crear Cuenta", "Index", "Perfil")
        <input type="submit" class="btnLogin" value="Log In" />
    </footer>
}
